<!-- 组件方式引入header -->
@component('backend.index.frame')
    @slot('title')
        <title>{{$title}}</title>
    @endslot
    @slot('script')
        <!-- 页面自身js -->
        <script type="text/javascript" src="/static/js/{{$identity}}.js"></script>
        @endslot
        @endcomponent
        </head>
        <body class="hold-transition sidebar-mini layout-fixed">
        <div class="wrapper">
            <!--顶部栏目-->
        <?php require_once resource_path('views') . '/backend/index/navbar.blade.php'; ?>
            <!-- 组件方式,引入侧边栏 -->
            @component('backend.index.sidebar')
                @slot('identity'){{$identity}}@endslot
                @slot('sidebar'){{$sidebar}}@endslot
            @endcomponent
            <div class="content-wrapper" id="group_edit">
                <!-- 内容标题（页面标题） -->
                <section class="content-header">
                    <div class="container-fluid">
                        <div class="row mb-2">
                            <div class="col-sm-6">
                                <h1>公司</h1>
                            </div>
                            <div class="col-sm-6">
                                <ol class="breadcrumb float-sm-right">
                                    <li class="breadcrumb-item"><a href="#">主页</a></li>
                                    <li class="breadcrumb-item active">公司编辑</li>
                                </ol>
                            </div>
                        </div>
                    </div>
                </section>

                <!-- 主体内容 -->
                <section class="content">
                    <div class="offset-md-2 col-md-8">
                        <!-- general form elements -->
                        <div class="card card-primary">
                            <div class="card-header">
                                <h3 class="card-title">
                                    公司信息
                                    <span v-if="group_id > 0">
                                        (您已有公司,可编辑)
                                    </span>
                                    <span v-else>
                                        (您没有公司,可新建)
                                    </span>
                                </h3>
                            </div>
                            <!-- /.card-header -->
                            <!-- form start -->
                            <input type="hidden" id="lcm_lingpai" value="{{csrf_token()}}">
                            <div class="card-body">
                                <div class="form-group">
                                    <label for="group_name">公司名称:</label>
                                    <input type="text" class="form-control" id="group_name" v-model="group_name" placeholder="输入公司名称">
                                </div>

                                <div class="form-group">
                                    <label for="description">公司描述:</label>
                                    <textarea class="form-control" rows="3" id="description" v-model="description" placeholder="请输入企业描述"></textarea>
                                </div>
                            </div>
                            <!-- /.card-body -->
                            <div class="card-footer">
                                <button type="button" class="btn btn-primary" @click="setGroup">
                                    <div v-if="group_id > 0">
                                        编辑公司
                                    </div>
                                    <div v-else>
                                        新建公司
                                    </div>
                                </button>
                            </div>
                        </div>
                    </div>
                </section>
            </div>

            <!--底部栏目-->
            <?php require_once resource_path('views') . '/backend/index/footer.blade.php'; ?>
        </div>
        </body>
        </html>
